package com.qfedu.mbti.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户表(User)表实体类
 *
 * @author makejava
 * @since 2024-11-04 11:43:41
 */
@Data
@NoArgsConstructor
@TableName("t_user")
public class User extends Model<User> {
    //序号
    @TableId(type = IdType.AUTO)
    private Integer id;
    //昵称，可以重复
    private String nickName;
    //手机号，唯一
    private String phone;
    //密码，密文
    private String password;
    //状态：有效 无效
    private String status;
    //考试次数
    private Integer num;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;

    public User(String nickName, String phone, String password) {
        this.nickName = nickName;
        this.phone = phone;
        this.password = password;
        this.status="有效";
        this.num=10;
        this.createTime=new Date();
        this.updateTime=new Date();
    }
}